package com.shen.start;

import java.util.Scanner;

/*判断邮箱合法*/
public class Email {
        public static void main(String[] args) {

            Scanner scanner = new Scanner(System.in);
            String str = scanner.next();
            String emailMatcher="[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+";

            //write your code here......
            System.out.println(str.matches(emailMatcher)?"邮箱格式合法":"邮箱格式不合法");

        }
}
